package com.jie.eduorder.client;

import com.jie.commonutils.ordervo.CourseWebVOOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 课程相关的远程调用接口
 * @author XieZhiJie
 * @create 2020-10-17 19:25
 */
@Component
@FeignClient("service-edu")
public interface EduClient {

    /**
     * 根据课程id查询课程信息
     * 用于远程调用
     * @param id  课程id
     * @return    返回课程信息
     */
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    CourseWebVOOrder getCourseInfoOrder(@PathVariable("id") String id);

}
